package cn.chenhongchao.zhaobiaopingtai;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
public class ZhaobiaopingtaiApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(ZhaobiaopingtaiApplication.class, args);
    }
    /**
     * 继承 SpringBootServletInitializer 实现 configure()
     * 方便打 war 外部服务器部署。
     *
     * @param applicationBuilder 程序构建工具
     * @return 程序构建工具
     */
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder applicationBuilder) {
        return applicationBuilder.sources(ZhaobiaopingtaiApplication.class);
    }

}
